//
//  MovieDetailCell.m
//  OpenEyes
//
//  Created by dlios on 15/9/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MovieDetailCell.h"

@implementation MovieDetailCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.detailImage = [[UIImageView alloc] init];
        self.detailImage.frame = CGRectMake(0, 0, WIDTH, (HEIGHT - 64)/2);
        self.detailImage.contentMode = UIViewContentModeScaleAspectFill;
        self.detailImage.layer.masksToBounds = YES;
        [self.contentView addSubview:self.detailImage];
        self.contentView.layer.masksToBounds = YES;
        self.contentView.backgroundColor = [UIColor clearColor];
        
        self.playView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"iconfont-play-o"]];
        self.playView.frame = CGRectMake(0, 0, 50, 50);
        self.playView.center = self.detailImage.center;
        self.playView.backgroundColor = [UIColor clearColor];
        [self.detailImage addSubview:self.playView];
        
    }
    return self;
}



@end
